#ifndef _PERIPHERAL_H_
#define _PERIPHERAL_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "stm32f10x.h"

class TransPeripheral
{
public:
    TransPeripheral(){;}
    ~TransPeripheral(){;}
    virtual void begin(void)=0;
    virtual void writeByte(u8 data){;}
    virtual u8 read(void){return 0;}
    virtual u16 readAfterWrite(u16 data)=0;
};


#ifdef __cplusplus
}
#endif

#endif
